#ifndef UPDATEPOINTCMD_H
#define UPDATEPOINTCMD_H

#include "Command/BaseCmd.h"
#include "DataType/ControlPointStruct.h"
#include "Protocol/CloudProtocol.h"

class UpdatePointCmd : public BaseCmd
{
    Q_OBJECT
public:
    enum{FunctionCode = CloudProtocol::UpdatePoint};

    Q_INVOKABLE explicit UpdatePointCmd(QObject *parent = 0);
    Package toPackage();
    void unPackage(Package package);

    QList<ControlPointStruct> updatePointList() const;
    void setUpdatePointList(const QList<ControlPointStruct> &updatePointList);

private:
    QList<ControlPointStruct> m_updatePointList;
};

#endif // UPDATEPOINTCMD_H
